package com.sumover.POJO;

import java.io.Serializable;

public class GameLink implements Serializable {
    private Integer gid;

    private String gameplatform;

    private String gameurl;

    private static final long serialVersionUID = 1L;

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGameplatform() {
        return gameplatform;
    }

    public void setGameplatform(String gameplatform) {
        this.gameplatform = gameplatform == null ? null : gameplatform.trim();
    }

    public String getGameurl() {
        return gameurl;
    }

    public void setGameurl(String gameurl) {
        this.gameurl = gameurl == null ? null : gameurl.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GameLink other = (GameLink) that;
        return (this.getGid() == null ? other.getGid() == null : this.getGid().equals(other.getGid()))
            && (this.getGameplatform() == null ? other.getGameplatform() == null : this.getGameplatform().equals(other.getGameplatform()))
            && (this.getGameurl() == null ? other.getGameurl() == null : this.getGameurl().equals(other.getGameurl()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGid() == null) ? 0 : getGid().hashCode());
        result = prime * result + ((getGameplatform() == null) ? 0 : getGameplatform().hashCode());
        result = prime * result + ((getGameurl() == null) ? 0 : getGameurl().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", gid=").append(gid);
        sb.append(", gameplatform=").append(gameplatform);
        sb.append(", gameurl=").append(gameurl);
        sb.append("]");
        return sb.toString();
    }
}